﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace A_Modules.ImageWaterMark
{
    public partial class ImageShowForm : Form
    {
        public ImageShowForm()
        {
            InitializeComponent();
        }

        private void ImageShowForm_Load(object sender, EventArgs e)
        {
            string basestr = AppDomain.CurrentDomain.BaseDirectory;

            string tmpsrc = @"D:\DevProjects\Myprojects\DotNet\iceternally-dotnet-test\trunk\BaseLab\BaseLab20\A-Modules\ImageTransparent\Src\Src2.tif";
            //this.pictureBox1.SizeMode = PictureBoxSizeMode.StretchImage;
            var tmpImage = Image.FromFile(tmpsrc);

            //this.pictureBox1.Width = tmpImage.Width;
            //this.pictureBox1.Height = tmpImage.Height;
            this.customImage1.PicImage = tmpImage;
            //this.pictureBox1.Image = tmpImage;
 
            //this.pictureBox1.AutoScrollOffset = new Point(500,500);


        }

        private void pictureBox1_MouseClick(object sender, MouseEventArgs e)
        {
            System.Console.WriteLine(e.X+","+e.Y);
        }
    }
}
